package com.szqhyxj.youxiangju.biz.merchantHome.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * XiaoPanYu
 * on 2018/11/14
 */
public class CommoditeDetails implements Parcelable{

    /**
     * packageId : 4
     * brandId : 6
     * factoryId : 1
     * packageName : 合伙人套餐A
     * packagePrice : 6000
     * price : 1200
     * deviceNum : 5
     * smallPic : http://x-tan.oss-cn-shenzhen.aliyuncs.com/shops/small_pic_346e22ea680947e3bf028240ab672269?Expires=3117251193&OSSAccessKeyId=LTAIN6BCphGSKSB5&Signature=g07YUpzOVZlSDDLWQFVsh9hn6Cs%3D
     * bigPic : http://x-tan.oss-cn-shenzhen.aliyuncs.com/shops/big_pic_400e29e794e744dc929d1ff419a2af69?Expires=3117251193&OSSAccessKeyId=LTAIN6BCphGSKSB5&Signature=jAuTwf82BqX%2FMl1N3v%2BOPIZUrIs%3D
     * packageStatus : 1
     * orderNo : 1
     * picKey : null
     * addDate : 2018-10-25 15:06:31
     * updateDate : null
     * brandName : YXJ001
     */

    private int packageId;
    private int brandId;
    private int factoryId;
    private String packageName;
    private String packagePrice;
    private String price;
    private int deviceNum;
    private String smallPic;
    private String bigPic;
    private int packageStatus;
    private int orderNo;
    private String picKey;
    private String addDate;
    private String updateDate;
    private String brandName;

    public int getPackageId(){
        return packageId;
    }

    public void setPackageId(int packageId){
        this.packageId = packageId;
    }

    public int getBrandId(){
        return brandId;
    }

    public void setBrandId(int brandId){
        this.brandId = brandId;
    }

    public int getFactoryId(){
        return factoryId;
    }

    public void setFactoryId(int factoryId){
        this.factoryId = factoryId;
    }

    public String getPackageName(){
        return packageName;
    }

    public void setPackageName(String packageName){
        this.packageName = packageName;
    }

    public String getPackagePrice(){
        return packagePrice;
    }

    public void setPackagePrice(String packagePrice){
        this.packagePrice = packagePrice;
    }

    public String getPrice(){
        return price;
    }

    public void setPrice(String price){
        this.price = price;
    }

    public int getDeviceNum(){
        return deviceNum;
    }

    public void setDeviceNum(int deviceNum){
        this.deviceNum = deviceNum;
    }

    public String getSmallPic(){
        return smallPic;
    }

    public void setSmallPic(String smallPic){
        this.smallPic = smallPic;
    }

    public String getBigPic(){
        return bigPic;
    }

    public void setBigPic(String bigPic){
        this.bigPic = bigPic;
    }

    public int getPackageStatus(){
        return packageStatus;
    }

    public void setPackageStatus(int packageStatus){
        this.packageStatus = packageStatus;
    }

    public int getOrderNo(){
        return orderNo;
    }

    public void setOrderNo(int orderNo){
        this.orderNo = orderNo;
    }

    public Object getPicKey(){
        return picKey;
    }

    public void setPicKey(String picKey){
        this.picKey = picKey;
    }

    public String getAddDate(){
        return addDate;
    }

    public void setAddDate(String addDate){
        this.addDate = addDate;
    }

    public Object getUpdateDate(){
        return updateDate;
    }

    public void setUpdateDate(String updateDate){
        this.updateDate = updateDate;
    }

    public String getBrandName(){
        return brandName;
    }

    public void setBrandName(String brandName){
        this.brandName = brandName;
    }

    @Override
    public int describeContents(){
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags){
        dest.writeInt(this.packageId);
        dest.writeInt(this.brandId);
        dest.writeInt(this.factoryId);
        dest.writeString(this.packageName);
        dest.writeString(this.packagePrice);
        dest.writeString(this.price);
        dest.writeInt(this.deviceNum);
        dest.writeString(this.smallPic);
        dest.writeString(this.bigPic);
        dest.writeInt(this.packageStatus);
        dest.writeInt(this.orderNo);
        dest.writeString(this.picKey);
        dest.writeString(this.addDate);
        dest.writeString(this.updateDate);
        dest.writeString(this.brandName);
    }

    public CommoditeDetails(){
    }

    protected CommoditeDetails(Parcel in){
        this.packageId = in.readInt();
        this.brandId = in.readInt();
        this.factoryId = in.readInt();
        this.packageName = in.readString();
        this.packagePrice = in.readString();
        this.price = in.readString();
        this.deviceNum = in.readInt();
        this.smallPic = in.readString();
        this.bigPic = in.readString();
        this.packageStatus = in.readInt();
        this.orderNo = in.readInt();
        this.picKey = in.readString();
        this.addDate = in.readString();
        this.updateDate = in.readString();
        this.brandName = in.readString();
    }

    public static final Parcelable.Creator<CommoditeDetails> CREATOR = new Parcelable.Creator<CommoditeDetails>(){
        @Override
        public CommoditeDetails createFromParcel(Parcel source){
            return new CommoditeDetails(source);
        }

        @Override
        public CommoditeDetails[] newArray(int size){
            return new CommoditeDetails[size];
        }
    };
}
